import none from '@/view/none'

//instructions
import ifShow from '@/view/vuejs/instructions/if-else-show';
import vFor from '@/view/vuejs/instructions/v-for';

//globalAPI
import directive from '@/view/vuejs/globalAPI/directive';
import extend from '@/view/vuejs/globalAPI/extend';

//practice
import request from '@/view/vuejs/practice/request';
import proxyTable from '@/view/vuejs/practice/proxyTable';
import components from '@/view/vuejs/practice/components';
import templates from '@/view/vuejs/practice/templates';
import ajaxServer from '@/view/vuejs/practice/ajaxServer';

export default [
	{
		path: '/vue/instructions', name: 'instructions', component: none,	//指令
		children: [
			{ name: 'if与show', path: '/vuejs/instructions/if-else-show', component: ifShow },
			{ name: 'for循环', path: '/vuejs/instructions/v-for', component: vFor },
		]
	},
	{
		path: '/vue/globalAPI', name: 'globalAPI', component: none,		//全局API
		children: [
			{ name: 'Vue.directive', path: '/vuejs/globalAPI/directive', component: directive },
			{ name: 'Vue.extend', path: '/vuejs/globalAPI/extend', component: extend },
		]
	},
	{
		path: '/vue/practice', name: 'practice', component: none,		//练习
		children: [
			{ name: 'request', path: '/vuejs/practice/request', component: request },
			{ name: 'proxyTable', path: '/vuejs/practice/proxyTable', component: proxyTable },
			{ name: 'components', path: '/vuejs/practice/components', component: components },
			{ name: 'templates', path: '/vuejs/practice/templates', component: templates },
			{ name: 'ajaxServer', path: '/vuejs/practice/ajaxServer', component: ajaxServer },
		]
	},
]